﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<%
    int pageno = Request["pageno"] == null ? 1 : int.Parse(Request["pageno"].ToString());//当前页
    int pagesize = 15;//单页记录数
    BIZ.WebInfomationPublishOper ipo = new BIZ.WebInfomationPublishOper();
    IList list = ipo.getlistweb(pageno, pagesize, (int)DAL.webEnums.template.选择嘉沃);
    string para = HttpContext.Current.Request.Url.Query;
    string id = Request["id"] == null ? "0" : Request["id"].ToString();
    Hashtable t = null;   
%>
<div class="main w_980 clearfix">
	<!--left-->
    <div class="left_box">
    	<!--menu-->
        <div class="menu">
        	<h2><img src="../../images/ico_11.png" /><strong><span>选择嘉沃</span></strong></h2>
            <ul>
                <% 
                    int i = 0;
                    foreach (Hashtable tb in list)
                    {
                        if (tb["total"] == null)
                        {
                            if (i == 0 && id == "0")
                            {
                                id = tb["Wi_id"].ToString();
                                i++;
                            }
                            Response.Write("<li><a class=\"" + (id == tb["Wi_id"].ToString() ? "s" : "") + "\" href=\"xzjw.html?id=" + tb["Wi_id"] + "\">" + (tb["Wi_title0"] == null ? "" : tb["Wi_title0"].ToString()) + "</a></li>");
                        }
                    }
                %>

            </ul>
        </div>
        <!--联系方式-->
        <% 
            Html.RenderPartial("~/Views/Shared/lxfs.ascx"); 
        %>
    </div>
	<!--right-->
    <div class="right_box">
    	<!--title-->
        <%
            IList detail = ipo.getinfomationbyid(int.Parse(id));
            if (detail.Count > 0)
            {
                t = (Hashtable)detail[0];
        %>
    	<div class="title_box"><strong><%=(t["Wi_title0"] == null ? "" : t["Wi_title0"].ToString())%></strong><span>·<a href="/index.html">首页</a>&gt;<a href="xzjw.html">选择嘉沃</a>&gt;<a href="xzjw.html?id=<%=id %>"><%=(t["Wi_title0"] == null ? "" : t["Wi_title0"].ToString())%></a></span></div>
        <div class="txt_box">
               <%=(t["Wi_content"] == null ? "" : BIZ.StringTool.GetImgs(t["Wi_content"].ToString()))%>
        </div>
        <% 
            }    
        %>
    </div>
</div>

</asp:Content>
